*************************************************************************
***********************Figure 2: GINI TREND over time********************
*************************************************************************

cd $PATH

grstyle init
grstyle set plain
grstyle set color tableau


use incdistribution.dta, clear
merge m:1 commid using community_location.dta, keep(match) nogen

collapse (mean) gini, by (tcz WAVE)

twoway (connected gini WAVE if tcz==1, lc(black) msize(small) lwidth(medthick)) ///
	   (connected gini WAVE if tcz==0, symbol(O) mcolor(gs10) msize(small) lc(gs10) lwidth(medthick)) , ///
		legend(pos(6) cols(2) symxsize(8)  label(1 "TCZ communities") label(2 "Non-TCZ communities")  ///
		size(small) region(lwidth(none))) graphregion(color(white)) bgcolor(white)  ///
		xtitle("Survey Year", size(small) margin(small))  ///
		ytitle("(mean) Gini coefficient", size(small) margin(small))  ///
		xlabel(1989 1991 1993 1997 2000 2004 2006 2009 2011 2015, labsize(small))  ///
		ylabel(,labsize(small))

graph export fig2_gini_trend.eps, replace
